package com.whxd.smarthome.core.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.whxd.smarthome.core.entity.DhDevice;

public interface DhDeviceDao extends JpaRepository<DhDevice, Long> {
	@Query("from DhDevice where deviceId = ?1 ")
	DhDevice findByDeviceId(String deviceId);
}
